<div class="MainContentInner">
    <div id="content">
        <div class="ContentWrapper">
            <div class="SubContent">
                <?php
                $idOld = 0;
                foreach ($mdBVs as $key => $mdBV) {
                    if ($idOld != $mdBV->dmnhombv_id) {
                        $idOld = $mdBV->dmnhombv_id

                        ?>
                        <div class="DocumentWrapper01 DocumentWrapperTheme01">
                        <div class="DocumentWrapperIn01">
                        <div class="title-big-box"><?php echo $mdBV->dmnhombv->ten_nhom; ?></div>
                        <ul class="ListDocument01">
                        <div id="yw0" class="list-view">
                        <div class="items">

                    <?php } ?>

                    <li class="First">
                        <?php if ($mdBV->img != null || $mdBV->img != '') { ?>
                            <div class="Image">
                                <a href="<?php echo Yii::app()->createUrl('baiviet/chitietbaiviet', array('nhom' => $mdBV->dmnhombv->link, 'alias' => $mdBV->link, 'id' => $mdBV->id)); ?>"
                                   title="<?php echo $mdBV->ten_bv; ?>">
                                    <img src="<?php echo $mdBV->img ?>" width="100" height="70"/></a>
                            </div>
                        <?php } ?>
                        <div class="Info">
                            <h6>
                                <?php echo CHtml::link($mdBV->ten_bv, array('baiviet/chitietbaiviet', 'nhom' => $mdBV->dmnhombv->link, 'alias' => $mdBV->link, 'id' => $mdBV->id)); ?>
                            </h6>

                            <p><?php echo strip_tags($mdBV->mieu_ta); ?> </p>

                            <p class="MoreSeeLink Wrapper">
                                <?php echo CHtml::link('Xem thêm', array('baiviet/chitietbaiviet', 'nhom' => $mdBV->dmnhombv->link, 'alias' => $mdBV->link, 'id' => $mdBV->id)); ?>
                            </p>
                        </div>
                    </li>

                    <?php
                    if (($key + 1 < count($mdBVs) && $mdBV->dmnhombv_id != $mdBVs[$key + 1]->dmnhombv_id) || $key + 1 == count($mdBVs)) {

                        ?>
                        </div>
                        </div>
                        </ul>
                        </div>
                        </div>

                    <?php
                    }
                }
                ?>

            </div>
            <div class="SideContent">
                <?php $this->renderPartial('/common/ds_nhom_baiviet', array('mNhomBV' => $mNhomBV)); ?>
                <?php $this->renderPartial('/common/bac_si_phu_trach'); ?>

            </div>
            <div class="clearboth"></div>
        </div>
    </div>
</div>